package com.itheima.dubbo.mysql.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.commons.model.domain.IndustryDistribution;
import com.itheima.dubbo.interfaces.IndustryDistributionApi;
import com.itheima.dubbo.mysql.mapper.IndustryDistributionMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;
@Service
public class IndustryDistributionImpl implements IndustryDistributionApi {

    @Autowired
    private IndustryDistributionMapper industryDistributionMapper;

    @Override
    public List<IndustryDistribution> query(String startTime, String endTime) {
        List<IndustryDistribution> industryDistributionList = industryDistributionMapper.query(startTime, endTime);
        return industryDistributionList;
    }
}
